const SMSClient = require('@alicloud/sms-sdk');

// https://usercenter.console.aliyun.com/#/manage/ak
const accessKeyId = 'LTAIZQoVVoPuBjU9'
const secretAccessKey = 'GfJuI2dLsCQh7Q56TmFxPTniXjkVnB'

let smsClient = new SMSClient({accessKeyId, secretAccessKey})

smsClient.sendSMS({
    PhoneNumbers: "17629360175,18238246730",
    SignName: '吴勋勋',//按照严格意义来说，此处的签名和模板的ID都是可变的
    TemplateCode: 'SMS_111785721',
    TemplateParam: '{code:"12345"}'
}).then(function (res) {
    let {Code}=res
    if (Code === 'OK') {
        //处理返回参数
        console.log("ok")
        // options.success('ok')
    }
}, function (err) {
    console.log(err)
})